﻿using UnityEngine;
using System.Collections;

public class Challenge
{

    private tk2dTextMesh score, move,target;
    public Challenge(tk2dTextMesh score, tk2dTextMesh move,tk2dTextMesh target)
	{
		this.target=target;
        this.score = score;
        this.move = move;
    }
    public int tempScore;

    public int AddScore(int num)
    {
        tempScore += num;
        score.GetComponent<tk2dTextMesh>().text = tempScore.ToString();
        score.Commit();
        return tempScore;
    }
	public int GetScore(){
		return tempScore;
	}
}
